<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<link href="http://127.0.0.1/vancl_php/Application/Admin/View/css/style1.css" rel="stylesheet" type="text/css" />
		<link href="http://127.0.0.1/vancl_php/Application/Admin/View/css/select.css" rel="stylesheet" type="text/css" />
		<link href="http://127.0.0.1/vancl_php/Static/css/hdjs.css" rel="stylesheet" type="text/css" />
		<script>
			var ajaxCheckUser = "<?php echo U('checkUserExists');?>";
			var ajaxCity = "<?php echo U('ajaxCity');?>";
			var ajaxDist = "<?php echo U('ajaxDist');?>";
		</script>
		<script type="text/javascript" src="http://127.0.0.1/vancl_php/Static/js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="http://127.0.0.1/vancl_php/Static/js/hdjs.min.js"></script>
		<script type="text/javascript" src="http://127.0.0.1/vancl_php/Application/Admin/View/js/reg.js"></script>
		<script type="text/javascript" src="http://127.0.0.1/vancl_php/Application/Admin/View/js/city.js"></script>
		<script type="text/javascript" src="http://127.0.0.1/vancl_php/Application/Admin/View/js/jquery.idTabs.min.js"></script>
		<script type="text/javascript" src="http://127.0.0.1/vancl_php/Application/Admin/View/js/select-ui.min.js"></script>
		<script type="text/javascript" src="http://127.0.0.1/vancl_php/Static/js/cal/lhgcalendar.min.js"></script>

		<script type="text/javascript">
			$(document).ready(function(e) {
				$('#birthday').calendar({
					format: 'yyyy/MM/dd HH:mm:ss'
				});
				$(".select1").uedSelect({
					width: 345
				});
				$(".select2").uedSelect({
					width: 167
				});
				//				$(".select3").uedSelect({
				//					width: 100
				//				});
			});
		</script>
	</head>

	<body>

		<div class="place">
			<span>位置：</span>
			<ul class="placeul">
				<li><a href="#">首页</a>
				</li>
				<li><a href="#">用户管理</a>
				</li>
				<li><a href="#">添加用户</a>
				</li>
			</ul>
		</div>

		<div class="formbody">

			<div id="usual1" class="usual">

				<div class="itab">
					<ul>
						<li><a href="#tab1" class="selected">基本信息</a>
						</li>
						<li><a href="#tab2">详细信息</a>
						</li>
					</ul>
				</div>

				<div id="tab1" class="tabson">

					<!--<div class="formtext">Hi，<b>admin</b>，欢迎您试用信息发布功能！</div>-->
					<form action="<?php echo U('addUser');?>" method="post" id="regForm">
						<ul class="forminfo">
							<li>
								<label>用户名<b>*</b>
								</label>
								<input name="username" type="text" class="dfinput" placeholder="请填写用户名" style="width:518px;" />
							</li>
							<li>
								<label>密码<b>*</b>
								</label>
								<input name="password" type="password" class="dfinput" placeholder="请填写用户密码" style="width:518px;" />
							</li>

							<li>
								<label>用户角色<b>*</b>
								</label>
								<div class="vocation">
									<select class="select1" name="is_admin">
										<option value="0">普通用户</option>
										<option value="1">后台管理员</option>
									</select>
								</div>

							</li>
							<li>
								<label>是否锁定
								</label>
								<div class="vocation">
									<label for="lock">
										<input id="lock" type="radio" value="1" name="is_lock" />锁定</label>
									<label for="unlock">
										<input id="unlock" type="radio" value="0" name="is_lock" checked="checked" />正常</label>

								</div>

							</li>
							<li>
								<label>&nbsp;</label>
								<input name="" type="submit" class="btn" value="添加" />
							</li>

						</ul>

				</div>

				<div id="tab2" class="tabson">

					<ul class="forminfo">
						<li>
							<label for="truename">真实改名</label>
							<input id="truename" name="truename" type="text" class="dfinput" placeholder="真实姓名" style="width:518px;" />
						</li>
						<li>
							<label for="bithday">生日</label>
							<input id="birthday" name="birthday" type="text" class="dfinput" placeholder="生日" style="width:518px;" />
						</li>
						<li>
							<label for="telphone">手机</label>
							<input id="telphone" name="telphone" type="text" class="dfinput" placeholder="手机号" style="width:518px;" />
						</li>
						<li>
							<label for="user_money">默认金额</label>
							<input id="user_money" name="user_money" type="text" class="dfinput" placeholder="默认金额" style="width:518px;" />
						</li>
						<li style="overflow:hidden;margin-bottom:10px;">
							<label for="" style="line-height: 20px;">所在地区</label>
							<div class="se">
								<!--省份选择-->
								<select id="province" style="opacity: 1;border:1px solid cornflowerblue;">
									<option value="0" selected="selected">--请选择/省份--</option>
									<?php foreach ($province as $key=>$val){?>
										<option value="<?php echo $val['provid'];?>"><?php echo $val['provname'];?></option>
									<?php }?>
								</select>
								<!--城市 -->
								<select style="opacity: 1;border:1px solid cornflowerblue;" name="city" id="city">
									<option value="0" selected="selected">--请选择/市级--</option>
								</select>
								<!--地区-->
								<select style="opacity: 1;border:1px solid cornflowerblue;" name="dist" id="dist">
									<option value="0" selected="selected">--请选择/县--</option>
								</select>
								<!--保存所有在地区隐藏表单-->
							<input type="hidden" name="address" />
							</div>

						</li>
						<li>
							<label for="alladdress">联系地址</label>
							
							<input id="alladdress" name="alladdress" type="text" class="dfinput" placeholder="联系地址" style="width:518px;" />
						</li>
						<li>
							<label for="zipcode">邮政编码</label>
							<input id="zipcode" name="zipcode" type="text" class="dfinput" placeholder="邮编" style="width:518px;" />
						</li>
						<li>
							<label>&nbsp;</label>
							<input name="" type="submit" class="btn" value="添加" />
						</li>

					</ul>
					</form>
				</div>

			</div>

			<script type="text/javascript">
				$("#usual1 ul").idTabs();
			</script>

			<script type="text/javascript">
				$('.tablelist tbody tr:odd').addClass('odd');
			</script>

		</div>

	</body>

</html>